import https from '../../utils/request';

//用户名登录
export const UsernameLogin=(data)=>{
    return https.post('/user/username/login',data);
}
//邮箱登录
export const EmailLogin=(data)=>{
    return https.post('/user/email/login',data);
}
//获取注册验证码
export const GetRegisterCode=(data)=>{
    return https.post('/user/register/valiCode',data);
}
//注册
export const Register=(data)=>{
    return https.put('/user/register',data);
}
//忘记密码
export const ForgetPassword=(data)=>{
    return https.post('/user/forgetPassword',data);
}